package com.mwh.repository;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class Repository1 {
    @Value("豆奶粉")
    private String name;
    @Value("30")
    private int age;
    @Value("女")
    private String sex;

    @Override
    public String toString() {
        return "Repository{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }

//        public void test() {
//        System.out.println("Repository1的test()方法执行了。。。");
//        }

}
